package cn.zhuo.knowledge.util.hutool.crypto.digest;

import cn.hutool.core.util.IdUtil;
import cn.hutool.crypto.digest.DigestUtil;

/**
 * <p>
 *
 * @author z2huo
 */
class Md5Test {


    public static void main(String[] args) {
        String snowflakeNextId = IdUtil.getSnowflakeNextIdStr();

        String md516Str = DigestUtil.md5Hex16(snowflakeNextId);
        System.out.println(md516Str);
        System.out.println(md516Str.length());
        System.out.println();

        String str = DigestUtil.md5Hex16(IdUtil.getSnowflakeNextIdStr());
        String str2 = DigestUtil.md5Hex16(IdUtil.getSnowflakeNextIdStr());
        System.out.println(str2.compareTo(str) > 0);
    }
}
